package com.gxar.quick.ar.server.base.model.exchange.vo.response;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.gxar.quick.ar.server.base.common.utils.BigDecimalSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/2/29 16:32
 */
@Data
@ApiModel("兑换品赠送记录响应")
public class AdminExchangeItemTransferPageResponse {


    @ApiModelProperty("ID")
    @JSONField(name = "id")
    @JsonProperty("id")
    private String id;

    @ApiModelProperty("兑换品码")
    @JSONField(name = "code")
    @JsonProperty("code")
    private String code;

    @ApiModelProperty("转赠/赠送日期")
    @JSONField(name = "createdAt")
    @JsonProperty("createdAt")
    @JsonFormat(pattern = "yyyy.MM.dd", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty("发起用户")
    @JSONField(name = "source_user")
    @JsonProperty("source_user")
    private String sourceUser;

    @ApiModelProperty("被赠用户")
    @JSONField(name = "target_user")
    @JsonProperty("target_user")
    private String targetUser;

    @ApiModelProperty("价格")
    @JSONField(name = "price")
    @JsonProperty("price")
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal price;

}
